/* Layout */
import Layout from '@/layout/index.vue'
export const systemAsyncRoutes = [
  {
    path: '/system',
    component: Layout,
    children: [
      {
        path: '/system/userList',
        component: () => import('@/views/system/userList.vue'),
        name: 'userList'
      },
      {
        path: '/system/rbac/role',
        component: () => import('@/views/system/rbac/role.vue'),
        name: 'role'
      },
      {
        path: '/system/rbac/permission',
        component: () => import('@/views/system/rbac/permission.vue'),
        name: 'permission'
      },
      {
        path: '/system/rbac/role',
        component: () => import('@/views/system/rbac/role.vue'),
        name: 'role'
      },
      {
        path: '/system/rbac/role',
        component: () => import('@/views/system/rbac/role.vue'),
        name: 'role'
      },
      {
        path: '/system/rbac/route',
        component: () => import('@/views/system/rbac/route.vue'),
        name: 'route'
      },
      {
        path: '/system/rbac/rule',
        component: () => import('@/views/system/rbac/rule.vue'),
        name: 'rule'
      },
      {
        path: '/system/menu',
        component: () => import('@/views/system/menu.vue'),
        name: 'menu'
      },
      {
        path: '/system/systemConfig',
        component: () => import('@/views/system/systemConfig.vue'),
        name: 'systemConfig'
      },
      {
        path: '/system/operationLog',
        component: () => import('@/views/system/operationLog.vue'),
        name: 'operationLog'
      }
    ]
  },
  {
    path: '/system/system',
    component: Layout,
    children: [
      {
        path: 'detail',
        component: () => import('@/views/system/childSystemDetail/index.vue'),
        name: 'childSystemDetail',
        meta: {
          title: '子系统详情',
          noCache: true,
          activeMenu: '/system/systemConfig',
          hide: true
        }
      }
    ]
  },
  {
    path: '/system/permission',
    component: Layout,
    children: [
      {
        path: 'detail',
        component: () =>
          import('@/views/system/rbac/permissionDetail/index.vue'),
        name: 'permissionDetail',
        meta: {
          title: '权限详情',
          noCache: true,
          activeMenu: '/system/rbac/permission',
          hide: true
        }
      }
    ]
  },
  {
    path: '/system/role',
    component: Layout,
    children: [
      {
        path: 'detail',
        component: () => import('@/views/system/rbac/roleDetail/index.vue'),
        name: 'roleDetail',
        meta: {
          title: '角色授权',
          noCache: true,
          activeMenu: '/system/rbac/role',
          hide: true
        }
      }
    ]
  },
  {
    path: '/system/user',
    component: Layout,
    children: [
      {
        path: 'detail',
        component: () => import('@/views/system/userDetail/index.vue'),
        name: 'userDetail',
        meta: {
          title: '用户授权',
          noCache: true,
          activeMenu: '/system/userList',
          hide: true
        }
      }
    ]
  },
  {
    path: '/system/operation-log',
    component: Layout,
    children: [
      {
        path: 'detail',
        component: () => import('@/views/system/operationLogDetail/index.vue'),
        name: 'operationDetail',
        meta: {
          title: '操作详情',
          noCache: true,
          activeMenu: '/system/operationLog',
          hide: true
        }
      }
    ]
  }
]
